package com.learn.scrm;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author : Yu.Tan
 * @date : 2023/7/3 14:08
 * @desc : **
 */
public class DateTest {
    public static void main(String[] args) throws ParseException {
       String date="2023-04-20 11:27:54";
        DateTime dateTime = DateUtil.parse(date);
        Date date1 = dateTime.toJdkDate();
        System.out.println(date1);
//        Date parse = new SimpleDateFormat().parse(date);
    }
}
